package com.wz.project.outTray.outTray.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.outTray.outTray.mapper.OutTrayMsgMapper;
import com.wz.project.outTray.outTray.domain.OutTrayMsg;
import com.wz.project.outTray.outTray.service.IOutTrayMsgService;
import com.wz.common.utils.text.Convert;

/**
 * 出库条码Service业务层处理
 * 
 * @author wld
 * @date 2023-10-19
 */
@Service
public class OutTrayMsgServiceImpl implements IOutTrayMsgService 
{
    @Autowired
    private OutTrayMsgMapper outTrayMsgMapper;

    /**
     * 查询出库条码
     * 
     * @param stockoutGuid 出库条码ID
     * @return 出库条码
     */
    @Override
    public OutTrayMsg selectOutTrayMsgById(String stockoutGuid)
    {
        return outTrayMsgMapper.selectOutTrayMsgById(stockoutGuid);
    }

    /**
     * 查询出库条码列表
     * 
     * @param outTrayMsg 出库条码
     * @return 出库条码
     */
    @Override
    public List<OutTrayMsg> selectOutTrayMsgList(OutTrayMsg outTrayMsg)
    {
        return outTrayMsgMapper.selectOutTrayMsgList(outTrayMsg);
    }

    /**
     * 新增出库条码
     * 
     * @param outTrayMsg 出库条码
     * @return 结果
     */
    @Override
    public int insertOutTrayMsg(OutTrayMsg outTrayMsg)
    {
        return outTrayMsgMapper.insertOutTrayMsg(outTrayMsg);
    }

    /**
     * 修改出库条码
     * 
     * @param outTrayMsg 出库条码
     * @return 结果
     */
    @Override
    public int updateOutTrayMsg(OutTrayMsg outTrayMsg)
    {
        return outTrayMsgMapper.updateOutTrayMsg(outTrayMsg);
    }

    /**
     * 删除出库条码对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteOutTrayMsgByIds(String ids)
    {
        return outTrayMsgMapper.deleteOutTrayMsgByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除出库条码信息
     * 
     * @param stockoutGuid 出库条码ID
     * @return 结果
     */
    @Override
    public int deleteOutTrayMsgById(String stockoutGuid)
    {
        return outTrayMsgMapper.deleteOutTrayMsgById(stockoutGuid);
    }
}
